# 14.py
# 实例属性 三个

class Person:
  def __init__(self):
    self.cache =  {}
  def __getitem__(self, key):
    return self.cache[key]
  def __setitem__(self, key, value):
    self.cache[key] = value
  def __delitem__(self, key):
    del self.cache[key]
  pass

p = Person()
p['name'] = 'sz'
print(p['name'])
del p['name']
# print(p)
